package com.example.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class PrivateContact implements Parcelable {
	private String name;
	private int number;
	private boolean isSelected;

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(name);
		dest.writeInt(number);

	}

	public static final Parcelable.Creator<PrivateContact> CREATOR = new Parcelable.Creator<PrivateContact>() {
		public PrivateContact createFromParcel(Parcel in) {
			return new PrivateContact(in);
		}

		public PrivateContact[] newArray(int size) {
			return new PrivateContact[size];
		}
	};
	private PrivateContact(Parcel in)
	{
		name = in.readString();
		number = in.readInt();
	}
}